package com.ddwl.goods.mapper;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.goods.model.ItemTrial;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ItemTrialMapper extends TkMapper<ItemTrial> {

     int insertByList(@Param("itemTrials")List<ItemTrial> itemTrials);

    void updateListByItemIdAndStage(@Param("itemTrials") List<ItemTrial> itemTrials);

    void updatePass(@Param("itemIds")List<String> itemIds);

    void updateUndercarriageReason(@Param("itemId")String itemId,@Param("stage")Integer stage);

    void deleteAuditing(@Param("itemIds")List<String> itemIds,@Param("auditingStage") Integer auditingStage);

    void  updateStackingStatus(@Param("itemIds") List<String> itemIds,@Param("isStacking") Integer isStacking);

    void updateUndercarriageRefuseReasonNull(@Param("itemId")String itemId,@Param("stage")Integer stage);

    void updateRefuseReasonNull(@Param("itemId")String itemId,@Param("stage")Integer stage);

    void changeId(@Param("map") Map<String, String> map);
}
